﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.DataAccess" %>
<table class="data-table">
    <tr>
        <th>
            Asset Name
        </th>
        <th>
            Asset ID
        </th>
        <th>
            Asset Type
        </th>
        <th>
            Department
        </th>
        <th>
            Create Work Order
        </th>
    </tr>
    <% For Each item As Asset In ViewData("Assets")%>
    <tr>
        <td>
            <%: item.AssetName%>
        </td>
        <td>
            <%: item.AssetID%>
        </td>
        <td>
            <%: item.AssetType.Description%>
        </td>
        <td>
            <%: item.SiteDepartment.Description%>
        </td>
        <td>
            <%: Html.ActionLink("Create Work Order", "Create", New With {.id = item.AssetID})%>
        </td>
    </tr>
    <% Next%>
</table>
